#!/bin/bash
read -p "运行环境是？(0=development,1=production)" nodeEnv
if [ $nodeEnv -eq 0 ]
then
    export NODE_ENV=development
else
    export NODE_ENV=production
fi
echo "Environment: $NODE_ENV"
export LANG=zh_CN.UTF-8
$NODE_PATH/forever/bin/forever start -a -l /dev/null -o $PWD/logs/out.log -e $PWD/logs/err.log -p $PWD $PWD/app.js
